
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class ArrayAccess extends Access {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getArrayAccessType();
	}
	
	protected Access expression;
	protected org.xteam.parser.runtime.AstList<Expression> indexes;
	
	public ArrayAccess(Span span, Access expression,org.xteam.parser.runtime.AstList<Expression> indexes) {
		super(span);
		this.expression = expression;
		this.indexes = indexes;
	}
	
	
	public Access getExpression() {
		return expression;
	}
	
	public void setExpression(Access expression) {
		this.expression = expression;
	}
	
	public org.xteam.parser.runtime.AstList<Expression> getIndexes() {
		return indexes;
	}
	
	public void setIndexes(org.xteam.parser.runtime.AstList<Expression> indexes) {
		this.indexes = indexes;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitArrayAccess(this);
	}
}
